﻿{include file="common/header1" /}
<div class="user w1200">
    <p class="title">Personal center</p>
    <div class="user_con flex">
        <div class="user_nav">
            <a href="/member">Personal information</a>
            <a href="/index/Member/orders">Order list</a>
            <a href="/index/Member/address" class="active">My address</a>
            <a href="javascript:;" id="logOut">Log Out</a>
        </div>
        <div class="user_right">
            <div class="user_right_box">
                <form class="user_address">
                    {foreach name="addressList" item="addL"}
                    {if $addL.is_default == 0}
                    <div class="user_inf_box">
                        <a href="/index/member/edit_address?id={$addL.id}">
                            <input type="text" disabled value="{$addL.name}" style="width: 100%;">
                            <input type="text" disabled value="{$addL.province}{$addL.city}{$addL.area}{$addL.address} {$addL.phone}" style="width: 100%;">
                        </a>
                        {if $addL.is_default == 0}
                        <a class="clear_btn set_default" data-id="{$addL.id}" href="javascript:;">Set Default</a>
                        {/if}
                        <span class="clear_btn del_address" data-id="{$addL.id}">X</span>
                    </div>
                    {else}
                    <div class="user_inf_box">
                        <a href="/index/member/edit_address?id={$addL.id}">
                            <input type="text" disabled value="[default] {$addL.name}" style="width: 100%;">
                            <input type="text" disabled value="{$addL.province}{$addL.city}{$addL.area}{$addL.address} {$addL.phone}" style="width: 100%;">
                        </a>
                        <span class="clear_btn del_address" data-id="{$addL.id}">X</span>
                    </div>
                    {/if}

                    {/foreach}

                </form>
                <div class="address_btn"><a class="anniu" href="/index/member/new_address">ADD NEW ADRESS</a></div>
            </div>
        </div>
    </div>
<!--    <div class="add_address_box">-->
<!--        <div class="con">-->
<!--            <p class="title">ADD address</p>-->
<!--            <label for="">Country:*</label>-->
<!--            <input type="text" value="Australia">-->
<!--            <label for="">Address:*</label>-->
<!--            <input type="text" value="">-->
<!--            <div class="add_address_box_btn flex">-->
<!--                <div class="add_btn">ADD</div>-->
<!--                <div class="close_btn">CLOSE</div>-->
<!--            </div>-->
<!--        </div>-->
<!--    </div>-->
</div>
{include file="common/footer" /}